$(document).ready(function () {
    $('#submit').click(function () {
        var username = $('#name').val();
        var pw = $('#pw').val();
        var phone = $('#phone').val();
        var email = $('#email').val();
        console.log(typeof username);
        var id = '<%= session.getAttribute("userId")%>';
        var part = '<%= session.getAttribute("part")%>';
        console.log(id);
        $.post('/sys-user/modify',
            {
                userId:id,
                userName:username,
                pwd:pw,
                part:part,
                telephone:phone,
                email:email,
            }
        );
    });
});